﻿package;

/* Flash packs */
#if flash
import flash.Lib;
#end

/* CPP packs */
#if cpp
import nme.Lib;
#end

/*
 * All starts here, if the states changes,
 * that class remains the same, but if the 
 * page is reloaded, that class reset
 */
class Main {
    public function new() {
        flash.Lib.current.addChild(new Game());
    }

    static function main() {
#if cpp
        Lib.create(function(){new Main();},640,480,60,0xccccff,(1*Lib.HARDWARE) | Lib.RESIZABLE);
#end


        trace("O");
        new Main();
    }
}
